/**
 * 维信科技
 * 练习嵌套if判断，多重分层判断
 * 购物结算
 * @auther wangjh
 * @time 20180930
 */
package day01;
import java.util.Scanner;
public class HomeWork02 {

	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		System.out.println("请输入是否是会员：是（y）否（其他字符）");
		//是否是会员
		String vip = input.next();
		System.out.println("请输入购物金额：");
		//消费金额输入
		double money = input.nextDouble();
		if("y".equals(vip)) {
			if(money>=200) {//会员享受的折扣
				System.out.println("实际支付："+0.75*money);
			}else {
				System.out.println("实际支付："+0.8*money);
			}
		}else {
			if(money>=100) {//非会员享受的折扣
				System.out.println("实际支付："+0.9*money);
			}else {
				System.out.println("实际支付："+money);
			}
			
		}
		
		

	}

}
